import MyPromise from "./src/myPromise2";

const ok = "ok";
const error = "error"
let p1 = MyPromise.resolve("1");
let p2 = MyPromise.resolve("2");
let p3 = MyPromise.resolve("3");
let result = MyPromise.all([p1, p2, p3]);
let result1 = MyPromise.race([p1, p2, p3]);
console.log(result)
console.log(result1)
// let p1=new MyPromise((resolve,reject)=>{
// 	resolve(ok);
// 	console.log(111)
// })
// p1.then(value => {
// 	console.log(222)
// });
// console.log(333)
